import request from '@/utils/request'

// 查询招标任务列表
export function listProjectTask(query) {
  return request({
    url: '/tender/projectTask/list',
    method: 'get',
    params: query
  })
}

// 查询招标任务详细
export function getProjectTask(id) {
  return request({
    url: '/tender/projectTask/' + id,
    method: 'get'
  })
}

// 新增招标任务
export function addProjectTask(data) {
  return request({
    url: '/tender/projectTask',
    method: 'post',
    data: data
  })
}

// 修改招标任务
export function updateProjectTask(data) {
  return request({
    url: '/tender/projectTask',
    method: 'put',
    data: data
  })
}

// 删除招标任务
export function delProjectTask(id) {
  return request({
    url: '/tender/projectTask/' + id,
    method: 'delete'
  })
}

// 导出招标任务
export function exportProjectTask(query) {
  return request({
    url: '/tender/projectTask/export',
    method: 'get',
    params: query
  })
}